import website  from '@/framework-core/config/website';
import {validateRules} from "@/framework-core/utils/validateRule";

export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "#",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
    searchEnter:true,
    selection: true,
    grid: window.isMobile,
    gridSpan: 24,
    menuWidth: 340,
  "column": [


        {
            "type": "input",
            "label": "日程内容",
            "prop": "title",
            "overHidden": false,
            "rules": [{
                required:true,
                message: '日程内容不能为空',
                trigger: 'blur'
            }],
            'search':  true,
            "span": 24
        }

,
      {
          "type": "date",
          "label": "开始时间",
          "prop": "start",
          "overHidden": false,
          format: 'YYYY-MM-DD hh:mm:ss',
          valueFormat: 'YYYY-MM-DD hh:mm:ss',
          "rules": [{
              required: true,
              message: '开始时间不能为空',
              trigger: 'blur'
          }],
          'search': true,
          "span": 12
      }

,
      {
          "type": "date",
          "label": "结束时间",
          "prop": "end",
          "overHidden": false,
          format: 'YYYY-MM-DD hh:mm:ss',
          valueFormat: 'YYYY-MM-DD hh:mm:ss',
          "rules": [{
              required: true,
              message: '结束时间不能为空',
              trigger: 'blur'
          }],
          'search': true,
          "span": 12
      }

,
      {
          "type": "select",
          "label": "是否可调整",
          "prop": "editable",
          "overHidden": false,
          dicData: [{"label": "否", "value": "0"}, {"label": "是", "value": "1"}],
          "rules": [{
              required: true,
              message: '是否可调整不能为空',
              trigger: 'blur'
          }],
          'search': true,
          "span": 12
      },
      {
          "type": "select",
          "label": "提醒方式",
          "prop": "alertType",
          "overHidden": false,
          dicData: [{"label": "通知", "value": "0"}, {"label": "强制提示", "value": "1"}],
          "rules": [{
              required: true,
              message: '提醒方式不能为空',
              trigger: 'blur'
          }],
          'search': true,
          "span": 12
      }
      ,
      {
          "type": "input",
          "label": "URL地址",
          "prop": "url",
          "overHidden": false,
          'search':  false,
          "span": 24
      }
  ]
}
